import VueRouter from 'vue-router'

import LocationView from '../components/LocationView.vue'
import HelloWorld from '../components/HelloWorld.vue'

//创建router实例对象，去管理一组一组的路由规则
const router = new VueRouter({
  routes: [
    {
      path: '/location',
      component: LocationView,
    },
    {
      path: '/hello',
      component: HelloWorld,
    },
  ],
})

//暴露router
export default router
